home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4302 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: rational.com!rlk
  2. From: rlk@rational.com (Bob Kitzberger)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  6. Date: 29 Jan 1996 17:33:48 GMT
  7. Organization: Rational Software Corporation
  8. Message-ID: <4ej0ds$sju@rational.rational.com>
  9. References: <30C40F77.53B5@swsbbs.com> <4cvu68$2jb@macaw.cyberport.com> <4d21og$iab@news.xmission.com> <4d2ok0$69s@beach.and.nl> <4dtv3gINNo9u@keats.ugrad.cs.ubc.ca> <4e5k6o$aci@grid.direct.ca>
  10. NNTP-Posting-Host: nubuddy.rational.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. qjackson@direct.ca wrote:
  14. : I use typedef primarily if I know that an underlying data type might
  15. : change at some point in the future, and I want to have one central way
  16. : of changing it.  [...]
  17. ...
  18. : Data abstraction.
  19.  
  20. That bears as much resemblance to data abstraction as McDonald's bears
  21. to fine dining.  You are using the primitive language types, and only
  22. in those special cases where you believe that a type will change do
  23. you introduce an alias for the type name.  That is not abstraction.
  24. The term "abstraction" means to emphasize the essential aspects and
  25. de-emphasize the inessential -- i.e. the user of a module (ADT, package,
  26. class, etc.) sees the abstraction, and you, the implementor of
  27. the module/ADT/package/class, hide the inessential details.  One
  28. of these inessential details is the primitive type (or types) that
  29. make up the inner workings of your abstraction.
  30.  
  31. IMNSHO.
  32.  
  33.  
  34.  
  35.